﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Design;
using System.Drawing;

namespace WINBASE.Controls
{
    [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip)]
    [DefaultProperty("Items")]
    public partial class WLCTspButton  : WLCToolStripControlHost
    {
        #region Constructor & Load

        public WLCTspButton() : base(CreateControlInstance())
        {
        }

        public WLCTspButton(IContainer container) : base(CreateControlInstance())
        {
            container.Add(this);
        }

        public WLCTspButton(string name) : this()
        {
            this.Name = name;
        }  

        #endregion

        #region Method

        private static Control CreateControlInstance()
        {
            WLCButton btn = new WLCButton();
            btn.Text = "%";
            btn.TabStop = false;
            btn.FlatStyle = FlatStyle.Flat;
            btn.FlatAppearance.BorderSize = 0;
            btn.FlatAppearance.BorderColor = Color.FromArgb(0, 255, 255, 255);
            btn.Size = new Size(20, 20);
            btn.Font = new Font(ApplicationData.AppFont.FontFamily, 8);
            return btn;
        } 

        #endregion
    }
}
